@import '~@/style/base.less';
@text_color: #242930;
@space: 24px;
@vertical_space: 16px;
@color_tag: #f05168;

.layout() {
  background: #ffffff;
  border-radius: 16px;
  margin: @vertical_space @space;
}

.checkorder_wrap {
  background: #F7F8F9;
  ;

  .table_code {
    .layout();
    padding: 30px;
    color: @text_color;
    font-size: 30px;
    // margin: @margin;
    background: #fff;
  }
}


.order_products {
  .layout();
  padding-bottom: @vertical_space;
  ;

  .title {
    font-size: 30px;
    font-weight: bold;
    height: 100px;
    border-bottom: 1px solid @color_border_simple;
    display: flex;
    align-items: center;
    padding: 0 @space;
  }

  .hideControl {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    background: #f6f6f6;
    border-radius: 29px;
    font-size: 28px;
    color: #999999;
    margin: 28px 128px;

    >i {
      flex: 0 0 auto;
      width: 56px;
      height: 56px;
      background: url('~@/assets/images/shop_down@2x.png') center no-repeat;
      background-size: 30px auto;
      transition: 0.5s;
      transition-property: transform;

      &.active {
        transform: rotate(180deg);
      }
    }
  }

  // .need_pay {
  //   line-height: 100px;
  //   text-align: right;
  //   font-size: 40px;
  //   font-weight: bold;
  //   padding: 0 @space;
  //   border-top: 1px solid @color_border_simple;
  //   > i {
  //     font-size: 24px;
  //     margin-right: 24px;
  //     font-weight: normal;
  //   }
  // }

}

.order_payment {
  .layout();

  .under {
    color: @color_price;
  }

  .need_pay {
    line-height: 100px;
    text-align: right;
    font-size: 40px;
    font-weight: bold;
    padding: 0 @space;
    border-top: 1px solid @color_border_simple;

    >i {
      font-size: 24px;
      margin-right: 24px;
      font-weight: normal;
    }
  }
}

.eating_way {
  .layout();
}

.info_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 0 @space;
  color: #333333;
  font-size: 30px;

  &+& {
    border-top: 1px solid @color_border_simple;
    // .hairline(top, @color_border_simple);
  }

  .rt_mg {
    margin-right: 30px;
  }

  >label {
    font-size: 32px;
    margin-right: 20px;
    flex: 0 0 auto;
  }

  .input_text {
    border: 0;
    text-align: right;
    flex: 1 1 500px;
    font-size: 28px;
    padding: 0;

    &::placeholder {
      color: #999999;
    }
  }

  .tag {
    display: inline-block;
    vertical-align: middle;
    line-height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 230, 230, 1);
    color: @color_tag;
    font-size: 20px;
  }

  .tips {
    color: @color_subtext;
  }

  .holder {
    color: @color_subtext;
  }
}

.remark_item {
  .frow(flex-start, center);
  height: 100px;
  padding: 0 @space;
  color: #333333;
  font-size: 30px;
  position: relative;
 
  &+& {
    border-top: 1px solid @color_border_simple;
  }

  >.remark {
    display: inline-block;
    margin-left: 100px;
    flex: 1;
    .area_code {
      position: relative;
      border: 0;
      background: transparent;
      color: @color_text;
      flex: 1 0 auto;
      padding: 0 22px 0 0;
      text-align: left;
      height: 50px;
      & + .form_input {
        padding: 0 32px 0 22px;
      }
      &::before {
        content: '+';
      }
      &::after {
        content: '';
        display: block;
        width: 4px;
        height: 28px;
        background: @color_border_simple;
        position: absolute;
        right: 0;
        top: 50%;
        margin-top: -14px;
      }
    }

    input {
      width: 100%;
      border: none;
    }
  }
  >.phone  {
    display: flex;
    margin-left: 100px;
    flex: 1;
    .area_code {
      position: relative;
      border: 0;
      background: transparent;
      color: @color_text;
      flex: 1 0 auto;
      padding: 0 22px 0 0;
      text-align: left;
      height: 50px;
      & + .form_input {
        padding: 0 32px 0 22px;
      }
      &::before {
        content: '+';
      }
      &::after {
        content: '';
        display: block;
        width: 4px;
        height: 28px;
        background: @color_border_simple;
        position: absolute;
        right: 0;
        top: 50%;
        margin-top: -14px;
      }
    }

    input {
      width: 100%;
      border: none;
    }
  }

  // & + & {
  //   border-top: 1px solid @color_border_simple;
  // }
}

.product_item {
  display: flex;
  // padding: 0 14px;
  padding: 0 14px;
  position: relative;

  &:not(:last-child) {
    .hairline(bottom, @color_border_simple);
  }

  &+& {
    // .info {
    //   border-top: 1px solid @color_border_simple;
    // }
  }

  .pic {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    margin: 32px 16px 0 0;
    object-fit: cover;
  }

  .info {
    flex: 1 1;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    padding: 32px 0;
  }

  .name {
    font-size: 28px;
    margin: 0 0 16px;
    line-height: 36px;
  }

  .spec {
    margin: 0;
    font-size: 26px;
    line-height: 32px;
    color: @color_price;

    .spec_num {
      color: @color_subtext;
    }

    :first-child {
      padding-right: 21px;

    }
  }

  .goods_info {
    flex: 1 1 auto;
    margin-right: 16px;
  }

  .price_info {
    flex: 0 0 auto;
    font-size: 30px;
    line-height: 36px;
    color: @color_price;

    >span {
      display: block;
    }
  }
}

.pay_wrap,
.pay_hidden,
.pay_main {
  height: 100px;
}

.pay_hidden {
  margin-bottom: 24px;
}

.pay_main {
  z-index: 9;
  bottom: 0;
  background: #ffffff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  // .footShadow();
  left: 24px;
  right: 24px;
  bottom: 24px;
  border-radius: 49px;
  overflow: hidden;

  .real_amount {
    flex: 0 0 auto;
    font-size: 48px;
    margin-right: 32px;
    color: @color_price;
  }

  .pay_button {
    .buttonBg();
    flex: 0 0 auto;
    height: 100px;
    border: 0;
    min-width: 212px;
    padding: 0 50px;
    font-size: 34px;
    font-weight: bold;
  }
}



.invoice_wrap {
  display: flex;
  flex-flow: column;
  height: 100%;
}

.invoice_form {
  flex: 1 1;
}

.invoice_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  padding: 0 28px;
  // background: #ffffff;
  border-bottom: 1px solid @color_border_simple;

  &.mt {
    margin-top: 20px;
  }

  // label {
  //   flex: 0 0 auto;
  //   margin-right: 50px;
  // }
  // .input {
  //   flex: 1 1;
  //   border: 0;
  //   text-align: right;
  // }
  .code {
    flex: 1 1;
    height: 80px;
    border: 0;
    border-radius: 10px;
    background: #fafafa;
    margin: 20px auto;
    padding: 20px;
  }
}

.invoice_submit {
  flex: 0 0 auto;
  display: block;
  width: 626px;
  height: 88px;
  border-radius: 16px;
  font-size: 32px;
  font-weight: bold;
  border: 0;
  margin: 30px auto;
  .buttonBg();
  .buttonShadow();
  > span {
    padding: 0 8px;
  }
}
.invoice_wrap {
  background:#fff;
}



.love_wrap {
  .title {
    flex: 0 0 auto;
    line-height: 80px;
    font-weight: bold;
    margin: 0 0 20px;
  }
  .search {
    flex: 0 0 auto;
    background: #fafafa;
    height: 60px;
    border-radius: 10px;
    padding: 0 28px;
    margin-bottom: 20px;
    > input {
      width: 100%;
      height: 100%;
      border: 0;
      background: transparent;
    }
  }
  .list {
    flex: 1 1;
    overflow: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    > li {
      margin: 0;
      padding: 10px 0;
      border-bottom: 1px solid @color_border_simple;
    }
    .code {
      margin: 0;
    }
    .name {
      font-size: 24px;
      color: #999999;
      margin: 0;
    }
  }
}

@keyframes code_in {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}
